﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.MesDB
{
    [Serializable]
    [Table("reality_qc")]
    public class RealityQC
    {
        /// <summary>
		/// ID，自增长
		/// </summary>
		[Column("id"), Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        [Column("fill_date")]
        public DateTime FillDate { get; set; }

        /// <summary>
        /// 生产线ID
        /// </summary>
        [Column("prod_line_id")]
        public int? ProdLineID { get; set; }

        /// <summary>
        /// 送检数量 
        /// </summary>
        [Column("chk_qty")]
        public decimal? CheckQty { get; set; }


        /// <summary>
        /// 合格数量 
        /// </summary>
        [Column("pass_qty")]
        public decimal? PassQty { get; set; }


        /// <summary>
        /// 不合格数量 
        /// </summary>
        [Column("err_qty")]
        public decimal? ErrQty { get; set; }


        /// <summary>
        /// 合格率
        /// </summary>
        [Column("pass_rate")]
        public decimal? PassRate { get; set; }

        /// <summary>
        /// 生产线名称
        /// </summary>
        [NotMapped]
        public string ProdLineName { get; set; }
    }
}
